<div class="finder-detail">
<div class="tableform">
<div class="division">
<form id="alertForm" method="post" action="/admin_setting/admin_feedback/addFeedback">
<table cellspacing="0" cellpadding="0" border="0">
	<tbody>
		<tr>
			<th style="vertical-align: middle">功能模块：</th>
			<td>
				<select name="feedback[module]" id="module" vtype="required">
					<option value="">请选择...</option>
					<option value="订单模块">订单模块</option>
					<option value="商品模块">商品模块</option>
					<option value="仓储模块">仓储模块</option>
					<option value="营销模块">营销模块</option>
					<option value="统计模块">统计模块</option>
					<option value="单据模块">单据模块</option>
					<option value="内容管理模块">内容管理模块</option>
					<option value="财务模块">财务模块</option>
					<option value="系统模块">系统模块</option>
					<option value="其他">其他</option>
				</select><font color="red">*</font>
			</td>
		</tr>
		<tr>
			<th>申报内容：</th>
			<td>
				<textarea name="feedback[content]" id="content" style="margin-left: 2px; margin-right: 2px; width: 301px; margin-top: 2px; margin-bottom: 2px; height: 133px;" vtype="required"></textarea>
				<font color="red">*</font>
			</td>
		</tr>
	</tbody>
</table>
</form>
</div>
</div>
<div class="table-action">
<button id="addAlertbtn" type="button" class="btn"><span><span>提交</span></span></button>
</div>
</div>
<script>
	(function(){
	    $('alertForm').store('target',{
	        onComplete:function(ret){
	    		var cmd = JSON.decode(ret);
	    		if(cmd['success'] != null){
	        		var dialog = $('alertForm').getParent('.dialog');
	        		var callback = dialog.retrieve('callback');
	        		dialog.retrieve('instance').close();
	        		if(callback){
	        			callback();
	                }
	        	}
	    	}
		});
	})();

	$('addAlertbtn').addEvent('click', function(e){
		e.stop();
		var _form = $('alertForm');
		_form.fireEvent('submit',e);
	});
</script>

